package work04game;

import java.util.Random;

public class Monster {
    private int health;
    private int attackPower;
    public Monster() {
        Random rand = new Random();
        health = rand.nextInt(141)+10;//10-150
        attackPower = rand.nextInt(21)+5;//5-25
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getAttackPower() {
        return attackPower;
    }

    public void setAttackPower(int attackPower) {
        this.attackPower = attackPower;
    }
    public int takeDamage(int damage) {
        return health -= damage;
    }


}
